function search(currentPage){
    $("#currentPage").val(currentPage);
    $("#mainForm").submit();
}